package com.yunhe.xyxxgl.view.User;

import com.yunhe.xyxxgl.mode.User;

import java.util.Scanner;

/**
 * Created by Administrator on 2017/8/8 0008.
 */
public class UserAdd {
    public static User userAddUI(){
        System.out.println("***********************学员信息管理系统-用户管理-新增*********************");
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入Id：");
        String id = sc.next();
        System.out.println("请输入用户名：");
        String userName = sc.next();
        System.out.println("请输入密码：");
        String passWord = sc.next();
        System.out.println("请输入真实姓名：");
        String realName= sc.next();
        System.out.println("请输入用户类型（讲师/管理员）：");
        String type = sc.next();
       return new User(id,userName,passWord,realName,type);
    }
}
